const sql = require('../MySQL/sql/frontEnd')
const db = require('../MySQL/index')

function getFrontEndData(req,res){
    let {key,sort} = req.params
    db.query(sql.getFrontEndData(key,sort),(err,result)=>{
        if(err) return res.cc(err)
        res.send({
            code:200,
            data:result
        })
    })
}

module.exports = {
    getFrontEndData
}